public class TestFour {

    public static void main(String[] args) {
        //半径
        int r=5;
        //高
        int  height = 10;
        //定义PI
        //final double PI = 3.14;
        //体积
        //double  volume = PI*r*r*height;
        double  volume = Math.PI*Math.pow(r,2)*height;
        System.out.println("体积="+volume);




    }
}
